//
//  WWSameSickCell.m
//  快医
//
//  Created by 孙博 on 16/7/7.
//
//

#import "WWSameSickCell.h"



@implementation WWSameSickCell

- (void)awakeFromNib {

    // 设计cell样式
    [self setupUI];
    [self setupLayout];
    
    // cell无法被选中
    
}

- (void)setupUI{
    UIButton *btn = [[UIButton alloc]init];
    
    [btn setBackgroundColor:XHRThemeColor];
    
    [btn setTitle:@"订阅" forState:UIControlStateNormal];
    [btn setTitle:@"已订阅" forState:UIControlStateHighlighted];
    
    self.subscibeBtn = btn;
    
    [self.contentView addSubview:btn];
    
    // laabel
    UILabel *label = [UILabel new];
    self.sickLabel = label;
    label.textColor = [UIColor blackColor];
    label.font = [UIFont systemFontOfSize:16];
    
}

- (void)setupLayout{
    
    [self.subscibeBtn makeConstraints:^(MASConstraintMaker *make) {
        
    }];
    
    [self.sickLabel makeConstraints:^(MASConstraintMaker *make) {
        
    }];
}

- (void)setModel:(WWSameTimeSickModel *)model{
    
    _model = model;
    self.sickLabel.text = model.complication_name;
}

@end
